package com.ruoyi.oar.mapper;

import java.util.List;
import com.ruoyi.oar.domain.OarImpNetHouse;
import com.ruoyi.oar.domain.query.OarImpNetHouseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Optional;
/**
 * 导入的网约房Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-24
 */
public interface OarImpNetHouseMapper
{
    /**
     * 查询导入的网约房
     *
     * @param id 导入的网约房主键
     * @return 导入的网约房
     */
    public Optional<OarImpNetHouse> selectOarImpNetHouseById(String id);

    /**
     * 查询导入的网约房列表
     *
     * @param oarImpNetHouseQuery 导入的网约房
     * @return 导入的网约房集合
     */
    public List<OarImpNetHouse> selectOarImpNetHouseList(OarImpNetHouseQuery oarImpNetHouseQuery);

    /**
     * 新增导入的网约房
     *
     * @param oarImpNetHouse 导入的网约房
     * @return 结果
     */
    public int insertOarImpNetHouse(OarImpNetHouse oarImpNetHouse);

    /**
     * 修改导入的网约房
     *
     * @param oarImpNetHouse 导入的网约房
     * @return 结果
     */
    public int updateOarImpNetHouse(OarImpNetHouse oarImpNetHouse);

    /**
     * 删除导入的网约房
     *
     * @param id 导入的网约房主键
     * @return 结果
     */
    public int deleteOarImpNetHouseById(String id);

    /**
     * 批量删除导入的网约房
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOarImpNetHouseByIds(String[] ids);


    public int batchImpNetHouse(List<OarImpNetHouse> houseList);

    /**
     * 批量更新是否下发状态
     * @param oarImpNetHouse
     * @return
     */
    public int updateOarImpNetHouseByIds(OarImpNetHouse oarImpNetHouse);

    /**
     * 修改临时网约房为下发
     * @param oarImpNetHouse
     * @return
     */
    public int updateisIssuedCheckByCreateBy(OarImpNetHouse oarImpNetHouse);

    /**
     * 根据批次号查询临时网约房列表
     * @param taskId
     * @return
     */
    public List<OarImpNetHouse> selectOarImpNetHouseByTaskId(String taskId);

    /**
     * 待核查网约房数量
     * @param createBy
     * @param isCheck
     * @return
     */
    public Integer countByIsCheck(@Param("createBy") String createBy,@Param("isCheck") String isCheck);

}
